home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
edit
/
tde40.zip
/
bj_ctype.c
next >
Wrap
C/C++ Source or Header
|
1994-06-05
|
529b
|
30 lines
/*
* Editor: TDE, the Thomson-Davis Editor
* Filename: myctype.c
* Compiled by: Byrial Jensen
*
* This file redefines the two standard library files tolower and toupper
*/
#include "tdestr.h"
#include "common.h"
int bj_tolower( int c )
{
if (c & 0xFF00)
return( c );
else
return( bj_isupper( c ) ? (int)upper_lower[c] : c );
}
int bj_toupper( int c )
{
if (c & 0xFF00)
return( c );
else
return( bj_islower( c ) ? (int)upper_lower[c] : c );
}